package com.zxx.ssm.service;

import com.zxx.ssm.dao.Guoziclass;
import com.zxx.ssm.dao.GuoziclassExample;
import com.zxx.ssm.mapper.GuoziclassMapper;
import com.zxx.ssm.service.core.IGuoziClassService;
import org.springframework.stereotype.Service;

@Service
public class GuoziClassService extends AbstractService<Guoziclass, GuoziclassExample, Integer, GuoziclassMapper> implements IGuoziClassService {

    public GuoziClassService(GuoziclassMapper guoziclassMapper){
        super(guoziclassMapper);
    }


    public int insertAndGetId(Guoziclass guoziclass) {
        this.baseMapper.insertAndGetId(guoziclass);
        return guoziclass.getId();
    }
}
